package com.zj.common;

public class Result<T> {
    private final static String TURE_CODE="1000";
    private final static String ERRO_CODE="1001";

    private String code;
    private T data;
    private String msg;

    public Result(T data){
        this.setCode(TURE_CODE);
        this.setData(data);
    }

    public Result(String msg){
        this.setCode(ERRO_CODE);
        this.setMsg(msg);
    }
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public static void main(String[] args) {
        int a =19;
        int b =31;
        System.out.println(a*b);
    }
}
